<?php
/**
 * Model class for Option Unit association
 *
 * @access 	public
 * @author 	Rob
 * @copyright	ResMania 2009 all rights reserved.
 * @version	1.0
 * @link	http://developer.resmania.com/api
 * @since  	11-2009
 */
class RM_Option extends RM_Model {
    protected $_name = 'rm_unit_option_association';

    /**
     * Returns associated unit ids
     *
     * @return Zend_Db_Table_Rowset
     */
    public function getAssociated($optionUnitID){
        return $this->fetchAll("unit_id = '".$optionUnitID."'");
    }
}